package com.ayf.payment.game.api.mapper;

import com.ayf.payment.game.api.entity.MerchantRolePermission;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface MerchantRolePermissionMapper extends Mapper<MerchantRolePermission> {

    /**
     * 增加角色权限
     *
     * @param roleId
     * @param permissionIds
     * @return
     */
    int addMerchantRolePermission(@Param("roleId") Integer roleId, @Param("permissionIds") List<Integer> permissionIds);
}